package entity;

public class FreeTicket extends Ticket {
	private String customerName;

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	@Override
	public void compute(int moviePrice) {
		setPrice(0);
	}
	@Override
	public void print(){
		StringBuffer sb = new StringBuffer();
		sb.append("*******************"+System.getProperty("line.separator"));
		sb.append("     ����ӰԺ (��Ʊ)   "+System.getProperty("line.separator"));
		sb.append("-------------------"+System.getProperty("line.separator"));
		sb.append("��Ӱ���ƣ�"+getScheduleItem().getMovie().getMovieName()+System.getProperty("line.separator"));
		sb.append("ʱ�䣺"+getScheduleItem().getTime()+System.getProperty("line.separator"));
		sb.append("��λ�ţ�"+getSeat()+System.getProperty("line.separator"));
		sb.append("������"+customerName+System.getProperty("line.separator"));
		sb.append("*******************"+System.getProperty("line.separator"));
		System.out.println(sb);
		printTxt(sb.toString());
	}
}
